class User < ActiveRecord::Base
  attr_accessible :email, :firstName, :lastName, :level, :password, :status, :username,:password_confirmation
  validates :password, :confirmation => true
  validates :password_confirmation, :presence => true
  
  validates :email, :firstName, :lastName, :level, :password, :username, :presence => true
  validates :email, :username, :uniqueness => true
  validates :password, :length => { :in => 6..20 }
  validates :level, :numericality => { :only_integer => true }
end
